package godardbaudrin.math.utils;
/**
 * 
 * @author Destiny
 *
 */
public class Pgcd {

	  public double getPgcd(double a, double b) {
	    if ( a > 0 && b > 0 ) {
	      while ( a != b ) {
	    	  	if ( a < b )
	    	  		b = b - a;
	    	  	else
	    	  		a = a - b;
	      }
	    }
	    return a;
	  }
}

